package com.cskaoyan.controller;

import com.cskaoyan.bean.MarketLog;
import com.cskaoyan.bean.common.BasePageInfo;
import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.common.CommonData;
import com.cskaoyan.service.AdminLogService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author gatsby
 * @since 2022/10/12 15:37
 */
@RestController
@RequestMapping("admin/log")
public class AdminLogController {

    @Autowired
    AdminLogService adminLogService;
    @RequestMapping("list")
    public BaseRespVo list(BasePageInfo basePageInfo, String username){
        CommonData<MarketLog> commonData=adminLogService.queryAllLogsLimit(basePageInfo,username);
        return BaseRespVo.ok(commonData,"成功");
    }
}
